package com.ssy.bus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ssy.bus.pojo.DrugInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author ssy
 */
@Repository
public interface DrugInfoMapper extends BaseMapper<DrugInfo> {

    //增加库存
    int updateDrugInfoNumber(@Param("id") Integer id, @Param("number") Integer number);

    //减少库存
    int updateDrugInfoNumberTwo(@Param("id") Integer id, @Param("number") Integer number);

}
